/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package system;

/**
 *
 * @author Micke
 */
import GUI.*;
import sql.*;
public class Main {


   
    public static void main(String[] args) {
         boolean start=true;
         SQLHandler sql = new SQLHandler();
         sql.Connect();
         UserHandler uH = new UserHandler(sql);


        
        logInFrame login=new logInFrame(uH);
       
        login.setAlwaysOnTop(false);
        login.setResizable(false);
        while (start) {
            start = login.isContinueValue();
        }
         MyFrame myFrame = new MyFrame(uH,sql);
        myFrame.setResizable(false);
        login.dispose();
        myFrame.setVisible(true);


    }
}
